package com.csun.cmny.provider.model.domain;

import com.csun.cmny.core.mybatis.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@Table(name = "cn_omc_consult")
public class OmcConsult  {

    @Id
    private Long id;

    //咨询订单id
    @Column(name = "longRangeServiceOrder_id")
    private Long longRangeServiceOrderId;

    //专家id
    @Column(name = "specialist_id")
    private Long specialistId;

    //咨询的基本名称或症状
    @Column(name = "consult_name")
    private String consultName;

    //持续时间 0-不到一周 1-一周~一个月 2-一个月~一年 3-大于半年
    @Column(name = "time_duration")
    private Integer timeDuration;

    //是否去医院就诊过 0-有 1-没有
    @Column(name = "is_see_doctor")
    private Integer isSeeDoctor;

    //就诊医院
    @Column(name = "see_hospital")
    private String seeHospital;

    //就诊科室
    @Column(name = "see_administrative")
    private String seeSdministrative;

    //是否有化验报告或是影像图片 0-有 1-没有
    @Column(name = "is_img")
    private Integer isImg;

    //图片code
    @Column(name = "img_code")
    private String imgCode;

    //当前是否有正在服用的药物 0-有 1-没有
    @Column(name = "is_medicine")
    private Integer isMedicine;

    //药物名称
    @Column(name = "medicine_name")
    private String medicineName;

    //服用说明
    @Column(name = "taking_instructions")
    private String takingInstructions;

    //曾经有过做过手术,放疗,化疗等重大治疗吗 0-有 1-没有
    @Column(name = "is_cure")
    private Integer isCure;

    //治疗描述
    @Column(name = "cure_remark")
    private String cureRemark;

    //治疗期间 开始
    @Column(name = "cure_time_start")
    private String cureTimeStart;


    //治疗结束时间
    @Column(name = "cure_time_end")
    private String cureTimeEnd;

    //病情主诉
    @Column(name = "was_the_chief_complaint")
    private String wasTheChiefComplaint;

    //希望得到医生什么帮助
    @Column(name = "want_help")
    private String wantHelp;

    //医生回复
    @Column(name = "write_back")
    private String writeBack;

    //机构id
    @Column(name = "group_id")
    private Long groupId;

    //医生回复时间
    @Column(name = "reply_time")
    private Date replyTime;

  /**
   * 创建人
   */
  private String creator;

  /**
   * 创建人ID
   */
  @Column(name = "creator_id")
  private Long creatorId;

  /**
   * 创建时间
   */
  @Column(name = "created_time")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date createdTime;

  /**
   * 最近操作人
   */
  @Column(name = "last_operator")
  private String lastOperator;

  /**
   * 最后操作人ID
   */
  @Column(name = "last_operator_id")
  private Long lastOperatorId;

  /**
   * 更新时间
   */
  @Column(name = "update_time")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private Date updateTime;

}
